package cn.bugio.note.feignclient.fallback;

import cn.bugio.note.common.domain.dto.UserDTO;
import cn.bugio.note.common.vo.ServerResponse;
import cn.bugio.note.feignclient.UserCenterFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author Vincent Vic
 * @version 1.0
 * @Description
 * @since 2021/2/27
 */

@Component
public class UserCenterFeignClientFallback implements UserCenterFeignClient {
    @Override
    public ServerResponse<UserDTO> findById(Integer id) {
        UserDTO userDTO = new UserDTO();


        return ServerResponse.error("限流或降级",userDTO);
    }
}
